package day05;

public class ArrayDemo3 {
    public static void main(String[] args) {
        int[] arr = new int[3];
        System.out.println("数组的长度为："+arr.length);
        System.out.println("数组的第一个元素为："+arr[0]);
        arr[0] = 100;
        arr[1] = 200;
        arr[2] = 300;
        //arr[3] = 400;
        System.out.println(arr[2]);
        System.out.println(arr[arr.length-1]);
    }
}
